package com.senken.service;

import com.senken.commons.result.Result;
import com.senken.entity.SkUser;

import java.util.List;

import com.baomidou.framework.service.ISuperService;

/**
 *
 * SkUser 表数据服务层接口
 *
 */
public interface ISkUserService extends ISuperService<SkUser> {

	SkUser selectByUsername(String username);

	boolean addUser(String username, String email, String password, String nickname, String phone, int role);

	Result updatePwd(String username, String newpassword, String oldpassword, String pwd);

	void updatelogintime(String username);

	void updatelogoutime(String username);

	List<SkUser> findUserByRole(int roleid);

	SkUser selectByid(int id);

    SkUser findOne(int roleid);

	List<SkUser> findAll(int page);

	int counts();


}